#define _CRT_SECURE_NO_WARNINGS 1
#include<stdbool.h>
bool judge(int n);
int main()
{
    return 0;
}
int* selfDividingNumbers(int left, int right, int* returnSize) {
    int i = 0;
    int* ret = malloc(sizeof(int) * (right - left));
    *returnSize = 0;
    for (i = left; i <= right; i++)
        if (judge(i))
            ret[*returnSize++] = i;
    return ret;
}
bool judge(int n)
{
    while (n)
    {
        if (n % (n % 10))
            return false;
        n /= 10;
    }
    return true;
}